package com.wrater.zero.common.base.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wrater.zero.common.base.dao.BaseMapper;
import com.wrater.zero.common.base.entity.BaseEntity;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 所有service继承此基类
 * @param <T> 实体类
 * @param <D> 实体类mapper
 */
public abstract class AbstractService <T extends BaseEntity, D extends BaseMapper<T>> extends ServiceImpl<D, T> implements BaseService<T>{

    @Autowired
    D mapper;

}
